<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<h:panelGroup>
		<p:panel styleClass=" cor-preenchimento" header="#{label.abstract_persistence_quantitativos}" rendered="#{CRUDSession.acoesCRUDRendered()}">
			<h:panelGrid columns="2">
				<h:outputText value="#{label.abstract_persistence_total}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.crudEmExibicao.quantidadeRegistrosEncontrados}" />

				<h:outputText value="#{label.abstract_persistence_ativos}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.crudEmExibicao.quantidadeRegistrosAtivos}" />

				<h:outputText value="#{label.abstract_persistence_inativos}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.crudEmExibicao.quantidadeRegistrosInativos}" />
			</h:panelGrid>
		</p:panel>

		<br />

		<p:panel styleClass=" cor-preenchimento" header="#{label.abstract_persistence_acoes}" rendered="#{CRUDSession.acoesCRUDRendered()}">

			<h:panelGrid columns="1">
				<h:panelGroup rendered="#{CRUDSession.linkCadastrarRendered}">
					<p:commandLink value="#{label.cadastrar}" actionListener="#{CRUDSession.crudEmExibicao.acessarPaginaCadastro}" onstart="#{label.script_bloquear_pagina}"
						oncomplete="#{label.script_desbloquear_pagina}" update="@form" />
					<br />
					<br />
				</h:panelGroup>

				<h:panelGroup rendered="#{CRUDSession.linkEditarRendered}">
					<p:commandLink value="#{label.editar}" disabled="#{CRUDSession.crudEmExibicao.isOpcaoEditarDisabled()}" onstart="#{label.script_bloquear_pagina}" oncomplete="#{label.script_desbloquear_pagina}"
						actionListener="#{CRUDSession.crudEmExibicao.acessarPaginaEdicao}" process="@this" update="@form" />
					<br />
					<br />
				</h:panelGroup>

				<h:panelGroup rendered="#{CRUDSession.linkExcluirRendered}">
					<p:commandLink value="#{label.excluir}" disabled="#{CRUDSession.crudEmExibicao.isOpcaoExcluirDisabled()}" actionListener="#{CRUDSession.crudEmExibicao.remover}"
						onstart="#{label.script_bloquear_pagina}" oncomplete="#{label.script_desbloquear_pagina}" update="@form" />
					<br />
					<br />
				</h:panelGroup>

				<h:panelGroup rendered="#{CRUDSession.linkAtivarRendered}">
					<p:commandLink value="#{label.ativar}" disabled="#{CRUDSession.crudEmExibicao.opcaoAtivarDisabled}" onstart="#{label.script_bloquear_pagina}" oncomplete="#{label.script_desbloquear_pagina}"
						actionListener="#{CRUDSession.crudEmExibicao.ativar}" process="@this" update="@form" />
					<br />
					<br />
				</h:panelGroup>

				<h:panelGroup rendered="#{CRUDSession.linkDesativarRendered}">
					<p:commandLink value="#{label.inativar}" disabled="#{CRUDSession.crudEmExibicao.opcaoInativarDisabled}" onstart="#{label.script_bloquear_pagina}" oncomplete="#{label.script_desbloquear_pagina}"
						actionListener="#{CRUDSession.crudEmExibicao.desativar}" process="@this" update="@form" />
					<br />
					<br />
				</h:panelGroup>

				<p:commandLink value="#{label.abstract_persistence_dados_gerais}" process="@this" oncomplete="PF('descricaoRegistroDialog').show()" disabled="#{CRUDSession.crudEmExibicao.isOpcaoEditarDisabled()}"
					rendered="#{CRUDSession.quadroInformativosGeraisRendered()}" />
			</h:panelGrid>
		</p:panel>

		<br />

		<p:dialog styleClass=" cor-preenchimento" header="#{label.abstract_persistence_dados_gerais}" widgetVar="descricaoRegistroDialog" dynamic="true" appendTo="@(body)" modal="true" resizable="false">
			<h:panelGrid columns="2">
				<h:outputText value="#{label.abstract_persistence_data_cadastro}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.registroEmSelecao.dataCadastro}" converter="dateTimeConverter" />

				<h:outputText value="#{label.abstract_persistence_data_atualizacao}" styleClass=" alinhamento-esquerda  negrito" />
				<h:outputText value="#{CRUDSession.registroEmSelecao.dataAtualizacao}" converter="dateTimeConverter" />

				<h:outputText value="#{label.abstract_persistence_data_ativacao}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.registroEmSelecao.dataAtivacao}" converter="dateTimeConverter" />

				<h:outputText value="#{label.abstract_persistence_data_inativacao}" styleClass=" alinhamento-esquerda negrito" />
				<h:outputText value="#{CRUDSession.registroEmSelecao.dataInativacao}" converter="dateTimeConverter" />


			</h:panelGrid>
		</p:dialog>

	</h:panelGroup>

</ui:composition>
